package com.deer.wms.base.system.model.Supplier;

import cn.hutool.core.date.DateTime;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.persistence.*;
import java.time.LocalDateTime;

@Getter
@Setter
@NoArgsConstructor
@Table(name = "supplier_manage")
public class SupplierManage {
    /**
     * 供应商ID
     */
    @Id
    @TableId(type = IdType.AUTO)
    @Column(name = "supplier_id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer supplierId;

    /**
     * 供应商编码
     */
    @Column(name = "supplier_code")
    private String supplierCode;

    /**
     * 供应商名字
     */
    @Column(name = "supplier_name")
    private String supplierName;

    /**
     * 供应商类型
     */
    @Column(name = "supplier_type")
    private String supplierType;

    /**
     * 供应商联系人
     */
    @Column(name = "link_man")
    private String linkMan;

    /**
     * 供应商联系电话
     */
    @Column(name = "link_phone")
    private String linkPhone;

    /**
     * 供应商地址
     */
    @Column(name = "supplier_site")
    private String supplierSite;

    /**
     * 供应商邮箱
     */
    @Column(name = "supplier_email")
    private String supplierEmail;

    /**
     * 供应商传真
     */
    @Column(name = "supplier_fax")
    private String supplierFax;

    /**
     * 备注
     */
    private String memo;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private String createTime;

    /**
     * 开户银行
     */
    @Column(name = "supplier_bank")
    private String supplierBank;

    /**
     * 生产厂家
     */
    @Column(name = "supplier_factory")
    private String supplierFactory;

    /**
     * 生产国家
     */
    @Column(name = "supplier_country")
    private String supplierCountry;

    @Column(name = "supplier_area")
    private String supplierArea;

    /**
     * 银行账号
     */
    @Column(name = "supplier_bankAccount")
    private String supplierBankaccount;

    /**
     * 纳税号
     */
    @Column(name = "supplier_taxNumber")
    private String supplierTaxnumber;

    /**
     * 省
     */
    private String province;

    /**
     * 市
     */
    private String city;

    /**
     * 区
     */
    private String area;

    /**
     * 详细地址
     */
    private String detailAddress;
    private Boolean enabled;

    //类型  ( 0  供应商  1  客户 )，不填默认供应商
    private int wldwType;

    //组织ID
    private Long org;

    //ID
    private Long sid;

    //修改时间
    private String makeDate;

}